#ifndef FORM_XXCX_H
#define FORM_XXCX_H

#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkInterface>
#include <QNetworkRequest>
#include <QJsonObject>
#include <QJsonArray>
#include <QSqlQuery>
#include <QMap>
#include <QSqlQueryModel>
#include <QListWidgetItem>
#include <QTimer>

namespace Ui {
class Form_xxcx;
}

class Form_xxcx : public QWidget
{
    Q_OBJECT

public:
    explicit Form_xxcx(QWidget *parent = nullptr);
    ~Form_xxcx();
    void putBaseIn( QJsonObject &in, QString code);

private slots:
    void closeEvent(QCloseEvent *event);
    void on_pb5201_clicked();
    void on_pb5202_clicked();
    void on_pb5203_clicked();
    void on_pb2601_clicked();
    void on_pbSearch_clicked();
    void on_pbExit_clicked();
    void on_pbMzh_clicked();
    void on_pbDycx_clicked();
    void on_pbCalc_clicked();
    void on_lwMzh_currentTextChanged(QString);
    void on_cbbJzid_currentTextChanged(QString);
    void onTimeOut();

    void on_lwMsgid_doubleClicked(const QModelIndex &index);

private:
    Ui::Form_xxcx *ui;
    QSqlQuery *qrm, *qro, *qrot;
    QString sq;
    QString oinfno;
    QNetworkRequest request;
    QNetworkAccessManager manager ;
    QJsonArray ret5201;
    QJsonArray ret5202;
    QJsonObject ret5203info;
    QJsonArray ret5203detail;

    QString psn_no;
    QString clinic_code;

    QTimer *tm;
    QString curMsg;
    QString currentMsgid;
};

#endif // FORM_XXCX_H
